package com.parrots.sample.service;

import java.util.List;

import com.parrots.sample.dao.MenuDao;
import com.parrots.sample.entity.Resource;

/**
 * Business Service Interface to handle communication between web and
 * persistence layer.
 */
public interface MenuManager extends UniversalManager {

    /**
     * Convenience method for testing - allows you to mock the DAO and set it on an interface.
     * @param menuDao the MenuDao implementation to use
     */
    void setMenuDao(MenuDao menuDao);

    /**
     * Retrieves a list of menus, filtering with parameters on a resource object
     * @param resource parameters to filter on
     * @return List
     */
    @SuppressWarnings("unchecked")
	List getMenus(Resource resource);

}
